<template>
  <div>
    <Card></Card>
    <Sale></Sale>
    <el-row :gutter="10">
     <el-col :span="12">
       <Search></Search>
     </el-col>
     <el-col :span="12">
       <Observe></Observe>
     </el-col>
    </el-row>
  </div>
</template>

<script>
import Observe from './Observe/index.vue'
import Search from './Search/index'
import Sale from './Sale/index'
import Card from './Card/index'
export default {
  name: 'Dashboard',
  components:{
    Card,
    Sale,
    Search,
    Observe
  },
  mounted() {
    //派发actionns，获取数据
    this.$store.dispatch('getDate');
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
